/*
 * UserLoginRepository.java
 * Copyright (c) 2014, 2019, Kiri. 
 * All rights reserved.
 */
package com.onesalt.service;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.onesalt.domain.UserLogin;

/**
 * @author kiri
 * @date 2015年4月9日
 * @version 1.0
 */
public interface UserLoginRepository extends PagingAndSortingRepository<UserLogin, Long> {

	public UserLogin findByToken(String token);
	
	public UserLogin findByUserIdAndDeviceId(long userId, String deviceId);
	
}
